import javax.swing.*;
import java.awt.*;

/**
 * @description:
 * @author: fan
 * @date: 2022/1/28 16:14
 * @version: 1.0
 */
public class FJPanel1 extends JPanel {

    public FJPanel1() {


       // repaint();
    }

    @Override
    public void paintComponent(Graphics g){
        System.out.println(11111);
        // 把背景图画到画板上
        super.paintComponent(g);
        g.drawString("2000",100,100);
    }
}
